package com.community.owner.service.impl;

import com.community.owner.domain.vo.StorageRoomVo;
import com.community.owner.mapper.OwnerStorageRoomMapper;
import com.community.owner.service.StorageRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OwnerStorageRoomServiceImpl implements StorageRoomService {

    @Autowired
    private OwnerStorageRoomMapper storageRoomMapper;

    @Override
    public List<StorageRoomVo> getStorageRoomByOwnerId(Long ownerId) {
        return storageRoomMapper.selectStorageRoomByOwnerId(ownerId);
    }
}
